﻿<UserControl x:Class="DIST.LR.ZHJG.Controls.Chart.ucDoughnut1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" 
    mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <dxc:ChartControl Name="chartControl1" HorizontalAlignment="Center" VerticalAlignment="Center"  BorderThickness="0" EnableAnimation="True" Width="150" Height="150">
            <dxc:ChartControl.Diagram >
                <dxc:SimpleDiagram2D Background="Transparent" Width="120" Height="120" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <dxc:SimpleDiagram2D.Series>
                        <dxc:PieSeries2D HoleRadiusPercent="80" ArgumentScaleType="Qualitative" AnimationAutoStartMode="SetStartState" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <dxc:PieSeries2D.PointAnimation>
                                <dxc:Pie2DFlyInAnimation Duration="0:0:1.5" PointOrder="Random" />
                            </dxc:PieSeries2D.PointAnimation>
                            <dxc:PieSeries2D.Points>
                                <dxc:SeriesPoint Argument="A" Value="1" />
                                <dxc:SeriesPoint Argument="B" Value="3" />
                                <dxc:SeriesPoint Argument="C" Value="7" />
                                <dxc:SeriesPoint Argument="D" Value="4" />
                            </dxc:PieSeries2D.Points>
                            <dxc:PieSeries2D.Model>
                                <dxc:GlarePie2DModel />
                            </dxc:PieSeries2D.Model>
                            <dxc:PieSeries2D.PointOptions>
                                <dxc:PointOptions>
                                    <dxc:PointOptions.ValueNumericOptions>
                                        <dxc:NumericOptions Format="Percent" Precision="0" />
                                    </dxc:PointOptions.ValueNumericOptions>
                                </dxc:PointOptions>
                            </dxc:PieSeries2D.PointOptions>
                            <dxc:PieSeries2D.Label>
                                <dxc:SeriesLabel Visible="False" RenderMode="RectangleConnectedToCenter" />
                            </dxc:PieSeries2D.Label> 
                        </dxc:PieSeries2D>
                    </dxc:SimpleDiagram2D.Series>
                </dxc:SimpleDiagram2D>
            </dxc:ChartControl.Diagram>
        </dxc:ChartControl>
    </Grid>
</UserControl>
